Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 4 - Dialog Manager Reference / Dialog Manager Types and Constants


Alert Feature Flag Constants

NEW WITH THE APPEARANCE MANAGER

You can set the following bits in the alert flags field of the extended alert resource to specify the alert box's Appearance-compliant features.

enum {
   kAlertFlagsUseThemeBackground  = (1 << 0),
   kAlertFlagsUseControlHierarchy = (1 << 1),
   kAlertFlagsAlertIsMovable      = (1 << 2),
   kAlertFlagsUseThemeControls    = (1 << 3)
};
kAlertFlagsUseThemeBackground
If this bit (bit 0) is set, the Dialog Manager sets the alert box's background color or pattern.
kAlertFlagsUseControlHierarchy
If this bit (bit 1) is set, the Dialog Manager creates a root control in the alert box and establishes an embedding hierarchy. Any alert items become controls once the embedding hierarchy is established.
kAlertFlagsAlertIsMovable
If this bit (bit 2) is set, the alert box is movable modal. The Dialog Manager handles movable modal behavior such as dragging the alert box by its title bar or switching out of the application by clicking in another one.
kAlertFlagsUseThemeControls
If this bit (bit 3) is set, the Dialog Manager creates Appearance-compliant controls in your alert box. Otherwise, push buttons, checkboxes, and radio buttons will be displayed in their pre-Appearance forms when systemwide Appearance is off.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998